<include file="./Application/Admin/View/Public/htmlheader.html" />
<include file="./Application/Admin/View/Public/header.html" />
<include file="./Application/Admin/View/Public/left.html" />

<style>
    .pagination{margin:0;}
</style>
<ol class="breadcrumb">
    <li><a href="/Admin/UserGroupFunction">权限列表</a></li>
    <li class="active">修改功能</li>
</ol>
<form action="__ROOT__/Admin/UserGroupFunction/save" method="post">
    <input type="hidden" name="id" value="{$function['id']}">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>名称：</div>
        <div class="col-lg-3"><input type="text" name="name" value="{$function['name']}" class="form-control" /></div>
    </div>
    <br />
    <if condition="$function['categoryId'] neq 0">
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>功能分类：</div>
        <div class="col-lg-3">
            <select class="form-control" name="categoryId">
                <volist name="functionCategories" id="vo">
                    <if condition="$vo.id eq $function['categoryId']">
                        <option value="{$vo.id}" selected>{$vo.name}</option>
                        <else/>

                        <option value="{$vo.id}">{$vo.name}</option>
                    </if>
                </volist>
            </select>
        </div>
    </div>
    <br />
    </if>
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>地址：</div>
        <div class="col-lg-3"><input type="text" name="url" value="{$function['url']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>是否菜单栏：</div>
        <div class="col-lg-3">
            <select name="isMenu" class="form-control">
                <if condition="$function['isMenu'] eq 1">
                    <option value="1" selected>是</option>
                    <option value="0">否</option>
                    <else />
                    <option value="1">是</option>
                    <option value="0" selected>否</option>
                </if>
            </select>
        </div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3 text-right"><span class="red">*</span>排序：</div>
        <div class="col-lg-3"><input type="text" name="sort" value="{$function['sort']}" class="form-control" /></div>
    </div>
    <br />
    <div class="row">
        <div class="col-lg-3"></div>
        <div class="col-lg-3"><button type="submit" class="btn btn-primary">确定</button></div>
    </div>
</form>
<script>
    $("#status").val("{$category['status']}");
    $("#parentsCateogry").val("{$category['categoryId']}");
</script>
<include file="./Application/Admin/View/Public/footer.html" />